<%@ page import="edu.xcdq.beans.User" %><%--
  Created by IntelliJ IDEA.
  User: huyuansong
  Date: 2021/11/8
  Time: 8:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        String userName = request.getParameter("userName");
        if(userName == null || userName.equals("")){
            response.sendRedirect("index.jsp");
        }else{
            User user = new User();
            user.setUserName(userName);
            session.setAttribute("user", user);
            response.sendRedirect("online.jsp");
        }
    %>
</body>
</html>
